package Demo1;


public class Bird extends Animal {


    public Bird(String name,int age){
        super(name,age);
    }

    public Bird eat(){
        System.out.println(this.name + "正在吃鸟粮....");
        return null;
    }

//     void fly(){
//        System.out.println(this.name + "正在天上飞翔....");
//    }

    //不可重写的方法:系统报错，connot override
//    public void running(){
//        System.out.println(this.name + "正在奔跑...");
//    }


}
